package org.example.cake.service;

import org.apache.ibatis.annotations.Param;
import org.example.cake.entity.Admin;
import org.springframework.stereotype.Service;

@Service
public interface AdminService{


    int deleteByPrimaryKey(Integer id);

    int insert(Admin record);

    int insertSelective(Admin record);

    Admin selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);

    /**
     * //管理员登录
     * @author 徐
     * @param username 管理员账号
     * @param password 管理员密码
     * @date 2025-07-25
     * @return 管理员对象
     */
    public Admin adminLogin(String username,String password);

}
